<html>
<head>
<title>Applet Tester Frame</title>
<script language="JavaScript">

// Function for creating the applet tag
function createAppletTag () {
	addr=java.net.InetAddress.getByName("mwlreversi.no-ip.org");
host=addr.getHostName();
ip=addr.getHostAddress();
	// Read info from parent window
	addr=java.net.InetAddress.getByName("mwlreversi.no-ip.org");
	host=addr.getHostName();
ip=addr.getHostAddress();
	gameinfo   = opener.document.form.game.value.split(" ");
	username   = opener.document.form.username.value;
	
	language   = opener.document.form.language.value;

	// Create applet HTML
	appletHTML =
		"<applet archive='" + gameinfo[0] + "' " +
		"        code='" + gameinfo[1] + "'" +
		"        width='100%' height='100%'>" +
		"    <param name='username'   value='" + username + "'>" +
		"	 <param name='serverhost' value='" + ip + "'>" +
		"    <param name='serverport' value='" + "1790" + "'>" +
		"    <param name='language' value='" + language + "'>" +
		"</applet>";

	// Assign to div and update title
	document.getElementById('applettag').innerHTML = appletHTML;
	document.title = "Applet Tester Frame [" + gameinfo[0] + "] connected as " + username;
}

window.onload = createAppletTag;

</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div id="applettag">Loading Applet</div>

</body>
</body>
